﻿using System;
using System.Collections.Generic;
using System.Text;

namespace C11_Ex02_1
{
    class Player
    {
        private String m_PlayerName;
        private Opponent.eTypeOfOpponent m_PlayerType;
        private int m_CurrentGameScore;
        private int m_AmountOfGamesWon;

        public Player()
        {
            m_CurrentGameScore = 0;
            m_AmountOfGamesWon = 0;
            m_PlayerName = null;
            m_PlayerType = Opponent.eTypeOfOpponent.Human;
        }

        public Opponent.eTypeOfOpponent PlayerType
        {
            get { return m_PlayerType; }
            set { m_PlayerType = value; }
        }

        public int GameScore
        {
            get { return m_CurrentGameScore; }
        }

        public void IncreaseGameScore()
        {
            m_CurrentGameScore++;
        }

        public void InitGameScore()
        {
            m_CurrentGameScore = 0;
        }

        public int AmountOfGamesWon
        {
            get { return m_AmountOfGamesWon; }
        }

        public void IncreaseGamesWon()
        {
            m_AmountOfGamesWon++;
        }

        public void InitAmountOfGamesWon()
        {
            m_AmountOfGamesWon = 0;
        }

        public String Name
        {
            get { return m_PlayerName; }
            set { m_PlayerName = value; }
        }
    }
}
